<template>
  <div class="welcome-container">
    <div class="card">
      <div class="welcome-message">
       您好！ <span class="username">{{ user.name }}</span>欢迎使用大连民族大学实验室成果管理系统
      </div>
    </div>
  </div>
</template>

<style scoped>
.welcome-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh; /* 居中显示 */
  background-color: #f0f0f0; /* 背景颜色 */
}

.card {
  width: 400px;
  padding: 20px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* 阴影效果 */
}

.welcome-message {
  font-size: 24px;
  text-align: center;
  padding: 10px;
  background-color: #f3f3f3;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 细小阴影 */
}

.username {
  color: blue;
  font-weight: bold;
  text-decoration: underline;
  font-size: 28px;
  animation: bounce 1s ease infinite; /* 添加动画效果 */
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px); /* 垂直向上抖动效果 */
  }
}
</style>

<script setup>
import request from "@/utils/request";
const user = JSON.parse(localStorage.getItem('student-user') || '{}')
</script>
